package com.hjm.project.lotteryPaymentOrder.lotteryPaymentOrder.service.impl;

import java.util.List;
import java.util.Map;

import org.springframework.stereotype.Service;
import com.hjm.project.lotteryPaymentOrder.lotteryPaymentOrder.mapper.LotteryPaymentOrderMapper;
import com.hjm.project.lotteryPaymentOrder.lotteryPaymentOrder.domain.LotteryPaymentOrder;
import com.hjm.project.lotteryPaymentOrder.lotteryPaymentOrder.service.ILotteryPaymentOrderService;
import com.hjm.common.utils.text.Convert;

import javax.annotation.Resource;

/**
 * 彩票支付订单Service业务层处理
 * 
 * @author maker-platform
 * @date 2021-03-19
 */
@Service
public class LotteryPaymentOrderServiceImpl implements ILotteryPaymentOrderService 
{
    @Resource
    private LotteryPaymentOrderMapper lotteryPaymentOrderMapper;

    /**
     * 查询彩票支付订单
     * 
     * @param serial 彩票支付订单ID
     * @return 彩票支付订单
     */
    @Override
    public LotteryPaymentOrder selectLotteryPaymentOrderById(String serial)
    {
        return lotteryPaymentOrderMapper.selectLotteryPaymentOrderById(serial);
    }

    /**
     * 查询彩票支付订单列表
     * 
     * @param lotteryPaymentOrder 彩票支付订单
     * @return 彩票支付订单
     */
    @Override
    public List<LotteryPaymentOrder> selectLotteryPaymentOrderList(LotteryPaymentOrder lotteryPaymentOrder)
    {
        return lotteryPaymentOrderMapper.selectLotteryPaymentOrderList(lotteryPaymentOrder);
    }
    public List<Map> selectLotteryPaymentOrderListTwo(Map map)
    {
        return lotteryPaymentOrderMapper.selectLotteryPaymentOrderListTwo(map);
    }

    /**
     * 购彩交易明细查询
     * @Param [map]
     * @Return java.util.List<java.util.Map>
     */
    public List<Map> getBankExList(Map map)
    {
        return lotteryPaymentOrderMapper.getBankExList(map);
    }

    /**
     * 清结算明细查询
     * @Param [map]
     * @Return java.util.List<java.util.Map>
     */
    public List<Map> getAuditDataList(Map map)
    {
        return lotteryPaymentOrderMapper.getAuditDataList(map);
    }

    /**
     * 新增彩票支付订单
     * 
     * @param lotteryPaymentOrder 彩票支付订单
     * @return 结果
     */
    @Override
    public int insertLotteryPaymentOrder(LotteryPaymentOrder lotteryPaymentOrder)
    {
        return lotteryPaymentOrderMapper.insertLotteryPaymentOrder(lotteryPaymentOrder);
    }

    /**
     * 修改彩票支付订单
     * 
     * @param lotteryPaymentOrder 彩票支付订单
     * @return 结果
     */
    @Override
    public int updateLotteryPaymentOrder(LotteryPaymentOrder lotteryPaymentOrder)
    {
        return lotteryPaymentOrderMapper.updateLotteryPaymentOrder(lotteryPaymentOrder);
    }

    /**
     * 删除彩票支付订单对象
     * 
     * @param ids 需要删除的数据ID
     * @return 结果
     */
    @Override
    public int deleteLotteryPaymentOrderByIds(String ids)
    {
        return lotteryPaymentOrderMapper.deleteLotteryPaymentOrderByIds(Convert.toStrArray(ids));
    }

    /**
     * 删除彩票支付订单信息
     * 
     * @param serial 彩票支付订单ID
     * @return 结果
     */
    @Override
    public int deleteLotteryPaymentOrderById(String serial)
    {
        return lotteryPaymentOrderMapper.deleteLotteryPaymentOrderById(serial);
    }
}
